from gglib.cache import BaseCache
import redis


class RedisCache(BaseCache):
    def __init__(self, **kwargs):
        self._redis = redis.Redis(**kwargs)

    def get(self, key):
        return self._redis.get(key)

    def set(self, key, value, **kwargs):
        self._redis.set(key, value, **kwargs)
